<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 日记</li>
        </ul>
    </div>
    <div id="rightside" class="diary_list">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h3>日记列表</h3>
            </div>
            <div class="contentbox">
                <div class="extrabottom">
                    <form method="get" action="admin.php" class="form-inline" role="form" >
                    	<div class="input-prepend">
							<span class="add-on">日记</span>
							<input class="span2" id="prependedInput" type="text" placeholder="标题" name="title" value="$_GET[title]" >
						</div>
						<div class="input-prepend">
							<span class="add-on">用户</span>
							<input class="span2" id="prependedInput" type="text" placeholder="昵称" name="nickname" value="$_GET[nickname]" >
						</div>
						<div class="input-prepend">
							<span class="add-on">用户</span>
							<input class="span2" id="prependedInput" type="text" placeholder="标题" name="UID" value="$_GET[uid]" >
						</div>
                        <select name="perpage" class="span3">
                            <option value="20"$perpages[20]>每页显示20个</option>
                            <option value="50"$perpages[50]>每页显示50个</option>
                            <option value="100"$perpages[100]>每页显示100个</option>
                        </select>
                        <input type="hidden" name="ac" value="diary" />
                        <input type="hidden" name="op" value="searchDiary"/>
                        <input type="submit" value="点击查找" class="btn" /> 
                    </form>
                </div>
                <div style="clear: both;"></div>
                <table width="100%">
                    <thead>
                        <tr>
                            <th>作者</th>
                            <th>标题</th>
                            <th>发布时间</th>
                            <th>附件</th>
                            <th>查看-评论-喜欢</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <!--{eval $i=0;}-->
                        <!--{loop $list $value}-->
                        <!--{eval $i++;}-->
                        <tr <!--{eval echo showRowHilite($i);}-->>
                            <td><a href="admin.php?ac=user_profile&uid={$value[eUid]}"
                               title="{$value[eNickname]}" target="_blank">{$value[eNickname]}</a> {if $value['detail']['user']['is_vip']==0}
                                {else}
                                <img style="width:40px;height:40px;" src="./static/images/vip/vip.png"><img>
                                {/if}
                                {if $value['detail']['user']['is_ability']==0}
                                {else}
                                {if $value['detail']['user']['ability_level']==1}
                                <img style="width:25px;height:24px;"  src="./static/images/ability/ability_s_1.png"></img>
                                {elseif $value['detail']['user']['ability_level']==2}
                                <img  style="width:25px;height:24px;" src="./static/images/ability/ability_s_2.png"></img>
                                {elseif  $value['detail']['user']['ability_level']==3}
                                <img  style="width:25px;height:24px;" src="./static/images/ability/ability_s_3.png"></img>
                                {elseif $value['detail']['user']['ability_level']==4}
                                <img  style="width:25px;height:24px;" src="./static/images/ability/ability_s_4.png"></img>
                                {elseif $value['detail']['user']['ability_level']==5}
                                <img  style="width:25px;height:24px;" src="./static/images/ability/ability_s_5.png"></img>
                                {/if}
                                {/if}
                                {if $value['detail']['user']['verified']==0}
                                {else}
                                <img style="width:25px;height:24px;" src="./static/images/vip/v.png"><img>
                                {/if}</td>
                            <td><a href="admin.php?ac=diary&op=getDiaryAllInfo&bodyId={$value[bodyId]}&uid={$value[eUid]}" target="_blank">
                                    <!--{eval echo getstr($value[content], 50, 1, 0);}-->
                                </a></td>
                            <td>
                                <!--{date('Y-m-d H:i',$value[time])}-->
                            </td>
                            <td>
                                {if !$value['detail']['attachmentList']}
                                -·-
                                {else}
                                {if $value['detail']['attachmentList']['attachmentType']=1}
                                <span class="icon-picture"></span>
                                {elseif $value['detail']['attachmentList']['attachmentType']=2}
                                <img style="width:25px;height:24px;" src="./static/images/attachment/audio.png">
                                {elseif $value['detail']['attachmentList']['attachmentType']=3}
                                <img style="width:20px;height:18px;" src="./static/images/attachment/video.png">
                                {/if}
                                {/if}
                            </td>
                            <td>{$value[detail][viewTimes]}-{$value[detail][commentTimes]}-{$value[detail][likeTimes]}</td>
                            <td>  <a style="font-size:30px;" href="admin.php?ac=diarycomments&uid={$value[eUid]}&bodyId={$value[bodyId]}&query=1" target="_blank">
                            		<img src="static/img/icons/gif_sms.gif" width="24" height="24" />
                            	  </a>&nbsp;
                            	  <a href="admin.php?ac=diary&op=getDiaryAllInfo&bodyId={$value[bodyId]}&uid={$value[eUid]}" target="_blank"><img
                                        src="static/img/icons/gif_view.gif" width="24" height="24" /></a>&nbsp;
                                  <a href="admin.php?ac=user&uid={$value[eUid]}" target="_blank"><img src="static/img/icons/gif_people.gif"
                                                                                     width="24" height="24" /></a> &nbsp;
                                  <a href="admin.php?ac=diary&op=removeSquare&id={$value[id]}&uid={$value[eUid]}&bodyId={$value[bodyId]}&label={$value[label]}" target="_blank"><img
                                        src="static/img/icons/gif_delete.gif" width="24" height="24" /></a>
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                </table>
                <div class="extrabottom">
                    <ul>
                    	<li><img src="static/img/icons/gif_sms.gif" />评论列表</li>
                    	<li><img src="static/img/icons/gif_view.gif" />日记详情</li>
                        <li><img src="static/img/icons/gif_people.gif" />作者信息</li>
                        <li><img src="static/img/icons/gif_delete.gif" /> 删除日记</li>
                    </ul>
                    <div class="bulkactions">
                        <ul class="pagination">
                            <!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">第一页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>
    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->